package com.example.javatwo.pojo.xs.lyh;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;

public class salesorders {
	
//	customerID VARCHAR(20) null,	/*客户*/
//	billDate   DATE NULL,		/*单据日期*/
//	addressID  VARCHAR(50) null,	/*送货地址*/
//	billNo     VARCHAR(20) not null PRIMARY KEY,	/*单据号码*/
//	billStyleID VARCHAR(20) null,	/*销售订单类型*/
//	custBillNo  VARCHAR(20) null,	/*客户订单*/
//	isHanShui   VARCHAR(20)	null,	/*字段名要换一下名字吗？:单价是否含税*/
//	custCyrrencyName VARCHAR(20) null,	/*币别*/
//	billStatus  VARCHAR(20) null,	/*单况*/
//	exchRate    double null,	/*汇率*/
//	salesName   VARCHAR(20)  null,	/*业务人员*/
//	maker	    VARCHAR(20)  null,	/*制单人员*/
//	departName  VARCHAR(20)  null,	/*所属部门*/
//	permitter   VARCHAR(20)  null,	/*复核人员*/
//	projectName VARCHAR(20)  null,	/*所属项目*/
//	isShenHe    VARCHAR(20)  null	/*是否审核*/
	
	public String customerID;/*客户*/
	
	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8",locale="zh")
	public Date billDate;/*单据日期*/
	public String addressID;/*送货地址*/
	public String billNo;/*单据号码*/
	public String billStyleID;/*销售订单类型*/
	public String custBillNo;/*客户订单*/
	public String isHanShui;/*单价是否含税*/
	public String custCyrrencyName;/*币别*/
	public String billStatus;/*单况*/
	public double exchRate;/*汇率*/
	public String salesName;/*业务人员*/
	public String maker;/*制单人员*/
	public String departName;/*所属部门*/
	public String permitter;/*复核人员*/
	public String projectName;/*所属项目*/
	public String isShenHe;/*是否结案*/
	public String isDel;/*逻辑删除*/
	
	public List<salesordersdetail> sales = new ArrayList<salesordersdetail>();

	public String getCustomerID() {
		return customerID;
	}

	public void setCustomerID(String customerID) {
		this.customerID = customerID;
	}


	public Date getBillDate() {
		return billDate;
	}

	public void setBillDate(Date billDate) {
		this.billDate = billDate;
	}

	public String getAddressID() {
		return addressID;
	}

	public void setAddressID(String addressID) {
		this.addressID = addressID;
	}

	public String getBillNo() {
		return billNo;
	}

	public void setBillNo(String billNo) {
		this.billNo = billNo;
	}

	public String getBillStyleID() {
		return billStyleID;
	}

	public void setBillStyleID(String billStyleID) {
		this.billStyleID = billStyleID;
	}

	public String getCustBillNo() {
		return custBillNo;
	}

	public void setCustBillNo(String custBillNo) {
		this.custBillNo = custBillNo;
	}

	public String getIsHanShui() {
		return isHanShui;
	}

	public void setIsHanShui(String isHanShui) {
		this.isHanShui = isHanShui;
	}

	public String getCustCyrrencyName() {
		return custCyrrencyName;
	}

	public void setCustCyrrencyName(String custCyrrencyName) {
		this.custCyrrencyName = custCyrrencyName;
	}

	public String getBillStatus() {
		return billStatus;
	}

	public void setBillStatus(String billStatus) {
		this.billStatus = billStatus;
	}

	public double getExchRate() {
		return exchRate;
	}

	public void setExchRate(double exchRate) {
		this.exchRate = exchRate;
	}

	public String getSalesName() {
		return salesName;
	}

	public void setSalesName(String salesName) {
		this.salesName = salesName;
	}

	public String getMaker() {
		return maker;
	}

	public void setMaker(String maker) {
		this.maker = maker;
	}

	public String getDepartName() {
		return departName;
	}

	public void setDepartName(String departName) {
		this.departName = departName;
	}

	public String getPermitter() {
		return permitter;
	}

	public void setPermitter(String permitter) {
		this.permitter = permitter;
	}

	public String getProjectName() {
		return projectName;
	}

	public void setProjectName(String projectName) {
		this.projectName = projectName;
	}

	public String getIsShenHe() {
		return isShenHe;
	}

	public void setIsShenHe(String isShenHe) {
		this.isShenHe = isShenHe;
	}

	public String getIsDel() {
		return isDel;
	}

	public void setIsDel(String isDel) {
		this.isDel = isDel;
	}

	public List<salesordersdetail> getSales() {
		return sales;
	}

	public void setSales(List<salesordersdetail> sales) {
		this.sales = sales;
	}

	

	public salesorders(String customerID, Date billDate, String addressID, String billNo, String billStyleID,
			String custBillNo, String isHanShui, String custCyrrencyName, String billStatus, double exchRate,
			String salesName, String maker, String departName, String permitter, String projectName, String isShenHe,
			String isDel,List<salesordersdetail> sales) {
		super();
		this.customerID = customerID;
		this.billDate = billDate;
		this.addressID = addressID;
		this.billNo = billNo;
		this.billStyleID = billStyleID;
		this.custBillNo = custBillNo;
		this.isHanShui = isHanShui;
		this.custCyrrencyName = custCyrrencyName;
		this.billStatus = billStatus;
		this.exchRate = exchRate;
		this.salesName = salesName;
		this.maker = maker;
		this.departName = departName;
		this.permitter = permitter;
		this.projectName = projectName;
		this.isShenHe = isShenHe;
		this.isDel = isDel;
		this.sales = sales;
	}

	public salesorders() {
		super();
	}

	public salesorders(String customerID, Date billDate, String addressID, String billNo, String billStyleID,
			String custBillNo, String isHanShui, String custCyrrencyName, String billStatus, double exchRate,
			String salesName, String maker, String departName, String permitter, String projectName, String isShenHe,
			String isDel) {
		super();
		this.customerID = customerID;
		this.billDate = billDate;
		this.addressID = addressID;
		this.billNo = billNo;
		this.billStyleID = billStyleID;
		this.custBillNo = custBillNo;
		this.isHanShui = isHanShui;
		this.custCyrrencyName = custCyrrencyName;
		this.billStatus = billStatus;
		this.exchRate = exchRate;
		this.salesName = salesName;
		this.maker = maker;
		this.departName = departName;
		this.permitter = permitter;
		this.projectName = projectName;
		this.isShenHe = isShenHe;
		this.isDel = isDel;
	}

	@Override
	public String toString() {
		return "salesorders [customerID=" + customerID + ", billDate=" + billDate + ", addressID=" + addressID
				+ ", billNo=" + billNo + ", billStyleID=" + billStyleID + ", custBillNo=" + custBillNo + ", isHanShui="
				+ isHanShui + ", custCyrrencyName=" + custCyrrencyName + ", billStatus=" + billStatus + ", exchRate="
				+ exchRate + ", salesName=" + salesName + ", maker=" + maker + ", departName=" + departName
				+ ", permitter=" + permitter + ", projectName=" + projectName + ", isShenHe=" + isShenHe + ", isDel="
				+ isDel +  "]";
	}
	
	
	
}
